<br/>
<form action="" method="post" id="frm_filtrado">
    <table>
        <tr>
            <td><!-- Compania--></td>
            <td><!-- <select name="cia">
        <option value="CMO">CORPORACION MOCTEZUMA SA DECV</option>
        <option value="CTE">COMERCIALIZADORA TEZUMA</option>
    </select>--></td>
        </tr>
        <tr>
            <td><strong>Cliente: </strong></td>
            <td><div id="pnl_clientes">No Clientes</div></td>
        </tr>
        <tr>
            <td><strong>Folio de Internet: </strong></td>
            <td>
                <input type="text" name="txt_serie" size="1"/> - <input type="text" name="txt_numero" size="5" onkeyup="numerico('txt_numero');"/>
            </td>
        </tr>
        <tr>
            <td><strong>Estatus: </strong></td>
            <td>
                <select name="cmb_estatus">
                    <option value="T" selected="">Seleccionar</option>
                    <option value="G">Generado</option>
                    <option value="R">Registrado</option>
                    <option value="A">Aclaraci&oacute;n</option>
                    <option value="X">Cancelado</option>
                </select>
            </td>
        </tr>
        <tr>
            <td><strong>Fecha desde: </strong></td>
            <td>
                <input type="text" id="f_date1" name="txt_desde" readonly="readonly">
                <img id="f_btn1" src="images/calendarLauncher.gif" alt="..." style="cursor: pointer;">
            </td>
        </tr>
        <tr>
            <td><strong>Fecha hasta: </strong></td>
            <td>
                <input type="text" id="f_date2" name="txt_hasta" readonly="readonly">
                <img id="f_btn2" src="images/calendarLauncher.gif" alt="..." style="cursor: pointer;">
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <input type="reset" value="Limpiar" class="button small blue"/>
                <input type="submit" value="Consultar" class="button small blue"/>
            </td>
        </tr>
    </table>
</form>
<div id="pnl_folios"></div>
<script type="text/javascript">
    charge('#pnl_clientes', 'clien?ac=ca');
    var cal = Calendar.setup({
        onSelect: function(cal) { cal.hide(); },
        showTime: false
    });
    cal.manageFields("f_btn1", "f_date1", "%d/%m/%Y");
    cal.manageFields("f_btn2", "f_date2", "%d/%m/%Y");
    
    var now = new Date();
    var hasta = ("0" + now.getDate()).slice(-2)+ '/'+ ("0" + (now.getMonth() + 1)).slice(-2) + '/' + now.getFullYear();
    var before = new Date(now.getTime() - (30 * 24 * 3600 * 1000) );
    var desde = ("0" + before.getDate()).slice(-2)+ '/' + ("0" + (before.getMonth() + 1)).slice(-2) + '/' + before.getFullYear();
    $('input[name=txt_desde]').val(desde);
    $('input[name=txt_hasta]').val(hasta);
    
    $("#frm_filtrado").submit(function() {
        $.post('index?ac=re', $("#frm_filtrado").serialize(), function(data) {
            $("#pnl_folios").html(data);
        }).error(function() {
            $('#pnl_folios').html('<br/>No se obtuvieron resultados del filtrados');
        });
        $("#pnl_folios").html('<p><img src="images/loading.gif" /><br/>Cargando...</p>');
        return false;
    } );
</script>